import { Model } from "../../model";
import { RenderCommandSystem } from "../RenderCommandSystem";
import { ICommand } from "./ICommand";

export class ModelBoundingCommand implements ICommand {
    constructor(private rcs: RenderCommandSystem) {

    }
    reset(): ICommand {
        return this;
    }
    execute(): boolean {
        const renderObjectCB = this.rcs.getParam("renderCb");
        const model = this.rcs.getParam("model");
        renderObjectCB(model.boundingBoxScene);
        return false;
    }

}
